package gui.mainGUIs;

import gui.designComponents.TMTNavigationButton;
import gui.designComponents.TMTPanel;

import java.awt.GridLayout;
import java.util.ResourceBundle;

import app.Controller;
import bundles.BundleLoader;
import definitions.Commands;

/**
 * Defines the Navigation Panel
 * 
 * @author MK
 * 
 */
public class NavigationControlPanel extends TMTPanel {

	public NavigationControlPanel(Controller controller) {
		super();

		ResourceBundle texts = BundleLoader.getResourceBundle();

		setLayout(new GridLayout(6, 0));

		TMTNavigationButton start = new TMTNavigationButton(texts
				.getString("startView"), Commands.SHOW_START_VIEW, controller);

		TMTNavigationButton events = new TMTNavigationButton(texts
				.getString("events"), Commands.SHOW_EVENT_OVERVIEW, controller);

		TMTNavigationButton team = new TMTNavigationButton(texts
				.getString("team"), Commands.SHOW_MEMBER_OVERVIEW, controller);

		TMTNavigationButton stats = new TMTNavigationButton(texts
				.getString("stats"), Commands.SHOW_STATS_OVERVIEW, controller);

		TMTNavigationButton profile = new TMTNavigationButton(texts
				.getString("profile"), Commands.SHOW_PROFILE, controller);

		TMTNavigationButton logout = new TMTNavigationButton(texts
				.getString("logout"), Commands.DO_LOGOUT, controller);

		add(start);
		add(events);
		add(team);
		add(stats);
		add(profile);
		add(logout);
	}
}